//
//  MainViewController.m
//  Ui07_封装相册
//
//  Created by 徐会玲 on 15/5/13.
//  Copyright (c) 2015年 徐会玲. All rights reserved.
//

#import "MainViewController.h"
#import "AddPhone.h"

@interface MainViewController ()

@end

@implementation MainViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    AddPhone *add = [[AddPhone alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
    [self.view addSubview:add];
    [add release];
    NSMutableArray *array = [NSMutableArray arrayWithObjects:
                     @"1.jpeg",
                     @"2.jpeg",
                     @"3.jpeg",
                     @"4.jpeg",
                     @"5.jpeg",
                     @"6.jpeg",
                     @"7.jpeg",
                     @"8.jpeg",
                     nil];

    [add addPicture:array];
    
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
